/*
 * @Author: 刘岩 15136056318@163.com
 * @Date: 2023-11-11 14:17:39
 * @LastEditors: 刘岩 15136056318@163.com
 * @LastEditTime: 2023-11-13 14:43:44
 * @FilePath: /react-template_pc/src/stores/Layout.ts
 * @Description:
 */
import { makeAutoObservable } from 'mobx'
class Layout {
  collapsed = false
  refreshMenus = 0
  refreshContent = 0
  constructor() {
    makeAutoObservable(this)
  }
  /**
   * @description: 是否展示菜单
   * @param {boolean} collapsed
   * @return {*}
   */
  setCollapsed(collapsed: boolean) {
    this.collapsed = collapsed
  }
  /**
   * @description: 刷新菜单选项
   * @return {*}
   */
  refreshMenus_fun() {
    this.refreshMenus += 1
  }
  /**
   * @description: 刷新内容
   * @return {*}
   */
  refreshContent_fun() {
    this.refreshContent += 1
  }
}
export default new Layout()
